﻿using ED.FreeSql.Core;
using FreeSql.DataAnnotations;

namespace ED.Entity
{
    [Table(Name = "Base_City")]
    /// <summary>
    ///  Base_City    
    /// </summary>
    public class Base_CityEntity : BaseEntity<int>
    {
        /// <summary>
        /// 城市名称    
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 缩写    
        /// </summary>
        public string ShortName { get; set; }

        /// <summary>
        /// 城市编码    
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 是否启用    
        /// </summary>
        public bool? Active { get; set; }

        /// <summary>
        /// 排序号    
        /// </summary>
        public int? Sort { get; set; }

        /// <summary>
        /// 备注    
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 删除是否    
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 创建时间    
        /// </summary>
        public DateTime CreatedDate { get; set; }

        /// <summary>
        /// 创建人    
        /// </summary>
        public int? CreatedBy { get; set; }

        /// <summary>
        /// 更新时间    
        /// </summary>
        public DateTime? UpdatedDate { get; set; }

        /// <summary>
        /// 更新人    
        /// </summary>
        public int? UpdatedBy { get; set; }

        /// <summary>
        /// 城市分级    
        /// </summary>
        public int? CityGrading { get; set; }

        [Navigate(nameof(ParentId))]
        public List<Base_CityEntity> Children { get; set; }

    }
}
